package lslnx.service.impl;

import lslnx.dao.UserDao;
import lslnx.model.User;
import lslnx.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

/**
 * Created by lslnx on 2017/5/4.
 */
@Service
public class UserServiceImpl  implements UserService{

    @Autowired
    private UserDao userDao;

    public User selectByPrimaryKey(Integer id) {
        return userDao.selectByPrimaryKey(id);
    }

    public User selectUserInfoByLoginName(String userName) {
        return userDao.selectUserInfoByLoginName(userName);
    }
}
